<Page x:Class="RRX.Xml.DemoCanvas.PageDemoCanvas"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
      xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
      xmlns:local="clr-namespace:RRX.Xml.DemoCanvas"
      mc:Ignorable="d" 
      d:DesignHeight="450" d:DesignWidth="800"
      Title="PageDemoCanvas">

    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="*" />
            <ColumnDefinition Width="Auto" />
            <ColumnDefinition Width="*" />
        </Grid.ColumnDefinitions>

        <!-- LINKS -->
        <Grid Grid.Column="0" Margin="5">
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="*"/>
            </Grid.RowDefinitions>

            <Label Content="Input" Grid.Row="0"/>
            <TextBox x:Name="TextBox"
                 Grid.Row="1"
                 AcceptsReturn="True"
                 VerticalAlignment="Stretch"/>
        </Grid>

        <!-- BUTTON -->
        <Button x:Name="Button"
            Grid.Column="1"
            Content="→"
            Margin="5"
            VerticalAlignment="Center"
            Click="Button_Click"/>

        <!-- RECHTS -->
        <Grid Grid.Column="2" Margin="5">
            <ScrollViewer Focusable="False"
                      HorizontalScrollBarVisibility="Hidden"
                      VerticalScrollBarVisibility="Hidden"
                      IsTabStop="False">
                <Canvas x:Name="Canvas"
                    Background="Gray"
                    MouseDown="Canvas_MouseDown"
                    MouseWheel="Canvas_MouseWheel"
                    MouseMove="Canvas_MouseMove">
                </Canvas>
            </ScrollViewer>
        </Grid>
    </Grid>
</Page>
